/**
 * @filename:CourseExamPaperServiceImpl Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.CourseExamPaperMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.CourseExamPaper;
import com.znufe.exam.service.CourseExamPaperService;

/**   
 *  
 * @Description:  课程表——SERVICEIMPL
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Service
public class CourseExamPaperServiceImpl implements CourseExamPaperService {
	
	@Autowired
	public CourseExamPaperMapper courseExamPaperMapper;
	
	//查询对象
	@Override
	public CourseExamPaper selectByPrimaryKey(Integer id) {
		return courseExamPaperMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return courseExamPaperMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(CourseExamPaper courseExamPaper) {
		return courseExamPaperMapper.insertSelective(courseExamPaper);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(CourseExamPaper courseExamPaper) {
		return courseExamPaperMapper.updateByPrimaryKeySelective(courseExamPaper);
	}
	
	//查询集合
	@Override
	public List<CourseExamPaper> queryCourseExamPaperList(CourseExamPaper courseExamPaper) {
		return courseExamPaperMapper.queryCourseExamPaperList(courseExamPaper);
	}

    @Override
    public List<Integer> getAllExamPaperId(Integer courseId) {
        return courseExamPaperMapper.getAllExamPaperId(courseId);
    }

    @Override
    public int deleteByCourseId(Integer courseId) {
        return courseExamPaperMapper.deleteByCourseId(courseId);
    }
}